package action.board;

import java.sql.SQLException;

import service.BoardService;
import vo.BoardVO;

public class BoardInfoAction
{
	private BoardService boardService;
	private int no;
	private BoardVO bvo;
	private int page;
	
	public void setBoardService(BoardService boardService)
	{
		this.boardService = boardService;
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}

	public int getNo()
	{
		return no;
	}
	public void setNo(int no)
	{
		this.no = no;
	}
	public BoardVO getBvo() {
		return bvo;
	}
	public void setBvo(BoardVO bvo) {
		this.bvo = bvo;
	}
	public String execute() throws SQLException
	{
		bvo = boardService.getInfoBaord(no);
		return "success";
	}
}